//
//  HMDiscoverTableViewController.swift
//  Weibo-walker
//
//  Created by 郭彬 on 16/3/2.
//  Copyright © 2016年 guobin. All rights reserved.
//

import UIKit

class HMDiscoverTableViewController: HMVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !userLogin {
            // 拿到访客视图View,去设置信息
            visitorView.setPageInfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
        setupUI()
        
    }
    
    //懒加载一个 view
    lazy var v:HMVisitorView = HMVisitorView()

    private func setupUI() {
        
        // 初始化 搜索框
        let searchView = HMDiscoverSearchView.searchView()
        searchView.frame.size.width = UIScreen.mainScreen().bounds.width
        // 设置成 titleView
        navigationItem.titleView = searchView
    }
}
